#define _CRT_SECURE_NO_WARNINGS 1
#include"ListNode.h"
void test()
{
	SLN * plist = NULL;
	SLNInit(&plist);
	SLNPushBack(plist, 1);
	//SLNPrint(plist);
	SLNPushBack(plist, 2);
	//SLNPrint(plist);
	SLNPushBack(plist, 3);
	//SLNPrint(plist);
	SLNPushBack(plist, 4);
	SLNPrint(plist);
	//SLNPushFront(plist, 1);
	//SLNPrint(plist);
	//SLNPushFront(plist, 2);
	//SLNPrint(plist);
	//SLNPushFront(plist, 3);
	//SLNPrint(plist);
	//SLNPushFront(plist, 4);
	//SLNPrint(plist);
	//SLNPopBack(plist);
	//SLNPrint(plist);
	//SLNPopBack(plist);
	//SLNPrint(plist);
	//SLNPopBack(plist);
	//SLNPrint(plist);
	//SLNPopBack(plist);
	//SLNPrint(plist);
	//SLNPopBack(plist);//为空，再删除就报错
	//SLNPrint(plist);
	//SLNPopFront(plist);
	//SLNPrint(plist);
	//SLNPopFront(plist);
	//SLNPrint(plist);
	//SLNPopFront(plist);
	//SLNPrint(plist);
	//SLNPopFront(plist);
	//SLNPrint(plist);
	////SLNPopFront(plist);
	////SLNPrint(plist);
	//SLN* find = SLNFind(plist, 2);
	//if (find == NULL)
	//{
	//	printf("没找到\n");
	//}
	//else
	//{
	//	printf("找到了\n");
	//}
	//SLN* find = SLNFind(plist, 3);
	//SLNInsert(find, 11);
	//SLNPrint(plist);
	//SLNErase(find);
	//SLNPrint(plist);
	SLNDestroy(&plist);
}
int main()
{
	test();
	return 0;
}